import Vue from 'vue'
import App from './App.vue'
import Watermark from "@/utils/warterMarkVue.js";

Vue.config.productionTip = false

Vue.directive('water',{
  bind(el,binding){
    Vue.nextTick(()=>{
      Watermark.set(
          binding.value.id,
          binding.value.str,
          document.getElementById(binding.value.dom)
      )
    })
  }
})

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

new Vue({
  render: h => h(App),
}).$mount('#app')
